Skip to content

Conversation

@Rexicon226
Copy link
Contributor

@Rexicon226 Rexicon226 commented Sep 14, 2025

This is a WIP PR where I focus on improving performance around sha256 related things. The first commit re-organizes the API a bit to make it easier to streamline the hashing later on. Single hashes do not need to go through a incremental API and instead can be pipelined when done in a loop, something to-be-implemented. And when doing mixins with just two inputs of a known size, we can pipeline that as well, performing much faster hashing than what we currently achieve.

@github-project-automation github-project-automation bot moved this to 🏗 In progress in Sig Sep 14, 2025
@Rexicon226 Rexicon226 force-pushed the Rexicon226/hash-refactor branch from 8838aba to 5985c27 Compare September 14, 2025 15:57
@codecov
Copy link

codecov bot commented Sep 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/consensus/optimistic_vote_verifier.zig 98.79% <100.00%> (ø)
src/consensus/vote_listener.zig 92.17% <100.00%> (ø)
src/core/blockhash_queue.zig 100.00% <100.00%> (ø)
src/core/entry.zig 95.23% <100.00%> (+0.04%) ⬆️
src/core/hash.zig 95.93% <100.00%> (+0.03%) ⬆️
src/core/poh.zig 98.92% <100.00%> (ø)
src/core/shred.zig 100.00% <100.00%> (ø)
src/gossip/fuzz_service.zig 96.61% <100.00%> (ø)
src/gossip/ping_pong.zig 98.23% <100.00%> (ø)
src/gossip/service.zig 87.83% <100.00%> (ø)
... and 11 more

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Rexicon226 Rexicon226 force-pushed the Rexicon226/hash-refactor branch from 5985c27 to 20694bb Compare September 26, 2025 03:22
@Rexicon226 Rexicon226 marked this pull request as ready for review September 26, 2025 13:50
Copy link
Contributor

@yewman yewman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just one small comment on a missed signature_count being hashed in conformance and small style preference

@Rexicon226 Rexicon226 force-pushed the Rexicon226/hash-refactor branch from 20694bb to be5589e Compare September 29, 2025 09:57
dnut
dnut previously requested changes Oct 1, 2025
@github-project-automation github-project-automation bot moved this from 🏗 In progress to 👀 In review in Sig Oct 1, 2025
@dnut dnut dismissed their stale review October 7, 2025 13:08

see my other comment

@Rexicon226 Rexicon226 force-pushed the Rexicon226/hash-refactor branch from be5589e to 405e63b Compare October 15, 2025 00:57
@dnut dnut added this pull request to the merge queue Oct 20, 2025
Merged via the queue into main with commit beb4aba Oct 20, 2025
20 checks passed
@dnut dnut deleted the Rexicon226/hash-refactor branch October 20, 2025 22:29
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Sig Oct 20, 2025
Sobeston pushed a commit that referenced this pull request Oct 29, 2025
This is a WIP PR where I focus on improving performance around sha256
related things. The first commit re-organizes the API a bit to make it
easier to streamline the hashing later on. Single hashes do not need to
go through a incremental API and instead can be pipelined when done in a
loop, something to-be-implemented. And when doing mixins with just two
inputs of a known size, we can pipeline that as well, performing much
faster hashing than what we currently achieve.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

5 participants